From e055d02fdee944490cc8c8e78cd441cd2e8a8227 Mon Sep 17 00:00:00 2001 From: "shand@kneesaa.uk.xensource.com" Date: Tue, 20 Jun 2006 11:02:49 +0100 Subject: [PATCH] Remove some spurious BUG_ON()'s from the credit scheduler. Signed-off-by: Steven Hand --- xen/common/sched_credit.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/xen/common/sched_credit.c b/xen/common/sched_credit.c index 644aee3f09..3b804cd644 100644 --- a/xen/common/sched_credit.c +++ b/xen/common/sched_credit.c @@ -967,9 +967,6 @@ csched_load_balance(int cpu, struct csched_vcpu *snext) if ( peer_cpu == cpu ) break; - BUG_ON( peer_cpu >= csched_priv.ncpus ); - BUG_ON( peer_cpu == cpu ); - /* * Get ahold of the scheduler lock for this peer CPU. * @@ -1072,7 +1069,6 @@ csched_schedule(s_time_t now) ret.task = snext->vcpu; CSCHED_VCPU_CHECK(ret.task); - BUG_ON( !vcpu_runnable(ret.task) ); return ret; } -- 2.30.2